/**
 * GUI - Se Policer
 * @author Mikkel Christiansen
 */

package com.kea.firsthorse.client;

import java.util.ArrayList;
import com.kea.firsthorse.shared.Horse;
import com.sksamuel.jqm4gwt.list.JQMList;

public class GUI_SePolicer extends GUI_Master {
	
	private JQMList formattedlist;

	public GUI_SePolicer(ArrayList<Horse> horse) {
		super();

		formattedlist = new JQMList();
		formattedlist.addDivider("Heste");
		formattedlist.setInset(true); // Afrunder hjørner og giver luft.
		add(formattedlist);

		for (Horse h : horse) {
			GUI_VaelgInfo horsepage = new GUI_VaelgInfo(h);
			formattedlist.addItem(h.getHorse_name(), horsepage);
		}

	}
}
